class ProductStandardModel:
    value = 'ProductStandardModel'
    label = '产品标准模型'
    fields = [
        {
            'value': 'id',
            'label': 'id',
        },
        {
            'value': 'name',
            'label': '名称',
        },
    ]


class MaterialStandardModel:
    value = 'MaterialStandardModel'
    label = '材料标准模型'
    fields = [
        {
            'value': 'id',
            'label': 'id',
        },
        {
            'value': 'name',
            'label': '名称',
        },
    ]


class StockStandardModel:
    value = 'StockStandardModel'
    label = '库存标准模型'
    fields = [
        {
            'value': 'id',
            'label': 'id',
        },
        {
            'value': 'number',
            'label': '数目',
        },
    ]


STANDARD_MODELS = [
    ProductStandardModel,
    MaterialStandardModel,
    StockStandardModel,
]


STANDARD_MODEL_MAP = {model.value: model for model in STANDARD_MODELS}
